﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SceneEditor
{
    public static class MessageBoxHelper
    {
        public static DialogResult ShowFileExists()
        {
            return MessageBox.Show("Do you wish to overwrite the exisiting file?",
                "File Already Exisits", MessageBoxButtons.YesNoCancel);
        }
        public static DialogResult ShowSaveChanges()
        {
            return MessageBox.Show("Do you wish to save any changes?",
                "Save Changes", MessageBoxButtons.YesNoCancel);
        }
        public static DialogResult ShowSaveTerrainChanges()
        {
            return MessageBox.Show("Do you wish to save the changes made to the existing terrain?",
                "Save Changes", MessageBoxButtons.YesNoCancel);
        }
        public static DialogResult ShowSaveColorMapChanges()
        {
            return MessageBox.Show("Do you wish to save the changes made to the existing terrain color map?",
                "Save Changes", MessageBoxButtons.YesNoCancel);
        }
        public static DialogResult ShowTryBuildContent()
        {
            return MessageBox.Show("Do you wish to try and build the project's content? " + 
                "This is not neccessary if you did this manually.",
                "Build Content", MessageBoxButtons.YesNoCancel);
        }
        public static DialogResult ShowFileNotFound()
        {
            return MessageBox.Show("The file you are trying to load could not be found.",
                "File Not Found", MessageBoxButtons.OK);
        }
        public static DialogResult ShowBuiltFileNotFound()
        {
            return MessageBox.Show("The file you are trying to load does not appear to have a corresponding .xnb file and could not be loaded.",
                "Built File Not Found", MessageBoxButtons.OK);
        }
        public static DialogResult ShowErrorOccured()
        {
            return MessageBox.Show("An error has occured before the task could be completed.",
                "Error Occured", MessageBoxButtons.OK);
        }
        public static DialogResult ShowHeightmapWrongSize()
        {
            return MessageBox.Show("Terain textures must be a size which is a power of two.",
                "Error Occured", MessageBoxButtons.OK);
        }

        public static DialogResult ShowPipelineReferenceMissing()
        {
            return MessageBox.Show("The content project you are connecting to does not contain " +
                "a reference to EnginePipeline.dll. You must add this to build content for use in the editor.",
                "Reference Missing", MessageBoxButtons.OK);
        }
    }
}
